/*
 * Parse.h
 *
 *  Created on: 2014年3月6日
 *      Author: song
 */

#ifndef PARSE_H_
#define PARSE_H_
#include "cmd.h"


class Parse {

public:

	Parse();
	virtual ~Parse();

#if 0

	int static ParseHeart(uint8 *p,
			HEAD *phd,
			const TERMINALINFO *ptinfo);

	int static ParseWifi(uint8 *p,
			HEAD *phd,
			const TERMINALINFO *ptinfo,
			const WIFI* pmaster);

	int static ParseWcdma(uint8 *p,
			HEAD *phd,
			const TERMINALINFO *ptinfo,
			const WCDMA* pmaster,
			const WCDMA_PILOT* pactives,const WCDMA_PILOT* pneighbours);

	int static ParseTdscdma(uint8 *p,
			HEAD *phd,
			const TERMINALINFO *ptinfo,
			const TDSCDMA* pmaster,
			const TDSCDMA_CELL* pcell);

	int static ParseCdma2000(uint8 *p,
			HEAD *phd,
			const TERMINALINFO *ptinfo,
			const CDMA2000* pmaster,
			const CDMA2000_PILOT* pactives,const CDMA2000_PILOT* pneighbours);

	int static ParseGsm(uint8 *p,
			HEAD *phd,
			const TERMINALINFO *ptinfo,
			const GSM* pmaster,
			const GSM_BA* pba,const GSM_CELL* pcell);

	void static AddCrc(uint8* p ,uint32 len);

	/**
	 * iNum1代表
	 */
	std::string static GetSubStr(std::string sSrc,int iNum1);

#endif
};



#endif /* PARSE_H_ */
